<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
   
      <div align="right"> <a href="./deconnexion.php">Déconnexion</a></div>
      <br><br><br>
      <link rel="stylesheet" href="./formCSS.css">
      <center>
        <fieldset style="border:solid 1px black; padding:20px; width:370px; color:midnightblue; "><legend>modification de mes données</legend>
              <table>
          <form name="form" method="POST">
        <?php $db = mysql_connect("localhost","root","root");
         mysql_selectdb("projet2", $db);
         $sql = mysql_query("select * from administrateur");
         $row = mysql_fetch_array($sql);
         ?>
              <tr><td>   login</td><td><input type="text" name="loginadmin" value="<?php echo $row['login']; ?>"></td></tr>
             <tr><td>     mot de  passe</td><td> <input type="password" name="motdepasseadmin"  value="<?php echo $row['motdepasse']; ?>"> </td></tr>
             <tr><td>     nom</td><td><input type="text" name="nomadmin"  value="<?php echo $row['nom']; ?>"></td></tr>
            <tr><td>      prenom</td><td><input type="text" name="prenomadmin" value="<?php echo $row['prenom']; ?>" ></td></tr>
            <tr><td>    </td><td>  <br><br><input type="submit" value="modifier"></td></tr>
               
             </form>
              </table>
        </fieldset>
           <?php
        include './Administrateur.php';
        $a = new Administrateur();
        $a->ModifierAdmin();
        ?>
      </center>
    </body>
    
</html>
